package cn.wubo.base.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SbAdminController {
    @RequestMapping("/sb-admin/base")
    public String sbAdminBase() {
        return "sb-admin/base";
    }

    @RequestMapping("/login")
    public String login() {
        return "sb-admin/login";
    }

    @RequestMapping("/login-error")
    public String loginError(Model model) {
        model.addAttribute("loginError", true);
        return "sb-admin/login";
    }

    @RequestMapping("/register")
    public String register() {
        return "sb-admin/register";
    }

    @RequestMapping("/forgot-password")
    public String forgotPassword() {
        return "sb-admin/forgot-password";
    }

    @RequestMapping("/sb-admin/index")
    public String sbAdminIndex() {
        return "sb-admin/index";
    }

    @RequestMapping("/401")
    public String accessDenied() {
        return "sb-admin/401";
    }

    @RequestMapping("/404")
    public String pageNotFound() {
        return "sb-admin/404";
    }

    @RequestMapping("/sb-admin/blank")
    public String blank() {
        return "sb-admin/blank";
    }

    @RequestMapping("/sb-admin/buttons")
    public String buttons() {
        return "sb-admin/buttons";
    }

    @RequestMapping("/sb-admin/cards")
    public String cards() {
        return "sb-admin/cards";
    }

    @RequestMapping("/sb-admin/charts")
    public String charts() {
        return "sb-admin/charts";
    }

    @RequestMapping("/sb-admin/tables")
    public String tables() {
        return "sb-admin/tables";
    }

    @RequestMapping("/sb-admin/utilities-color")
    public String utilitiesColor() {
        return "sb-admin/utilities-color";
    }

    @RequestMapping("/sb-admin/utilities-border")
    public String utilitiesBorder() {
        return "sb-admin/utilities-border";
    }

    @RequestMapping("/sb-admin/utilities-animation")
    public String utilitiesAnimation() {
        return "sb-admin/utilities-animation";
    }

    @RequestMapping("/sb-admin/utilities-other")
    public String utilitiesOther() {
        return "sb-admin/utilities-other";
    }


    @RequestMapping("/sb-admin/user")
    public String user() {
        return "redirect:/sb-admin/user/userList";
    }

    @RequestMapping("/sb-admin/user/userList")
    public String userList() {
        return "sb-admin/user/userList";
    }

    @RequestMapping("/sb-admin/role")
    public String role() {
        return "redirect:/sb-admin/role/roleList";
    }

    @RequestMapping("/sb-admin/role/roleList")
    public String roleList() {
        return "sb-admin/role/roleList";
    }
}
